import mock from 'mockjs'
import { jsonSuccess } from './base'

mock.mock('/api/admin/managers', jsonSuccess({
  'list|1-30': [
    {
      id: '@integer(1, 10000)',
      username: '@string(10)',
      nickname: '@cname',
      login_time: '@datetime',
      create_time: '@datetime'
    }
  ]
}))

mock.setup({
  timeout: 400
})
